<html>
<head>
    <meta charset="utf-8">
    <title>首页</title>
</head>
<body>

    {% if request.session.username %}
        <p>欢迎 {{ request.session.username }}</p>
    
        <p><a href="/user/logout">退出登录</a></p>
        <p><a href="/note/all/">进入我的笔记</a></p>
    {% else %}
        <p><a href="/user/login/">现在去登录</a></p>
        <p><a href="/user/reg/">现在去注册</a></p>
    {% endif %}
</body>
</html>